<script>
	export default {
		onLaunch: function() {
			
			// 获取系统信息
			const { screenWidth, statusBarHeight } = uni.getSystemInfoSync();
			// 获取胶囊按钮信息
			const { height, top, right, width } = uni.getMenuButtonBoundingClientRect();
			this.globalData.navData = {
				contentMr: width + (screenWidth - right) + 5, 
				statusBarH: statusBarHeight,		
				navBarH: (top - statusBarHeight) * 2 + height,
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData :{
			navData: null,
			version: '2.1.1',
		}
	}
</script>

<style>
.w-full{
	width: 100%;
}
.h-full{
	height: 100%;
}
.flex{
	display: flex;
}
.items-center{
	align-items: center;
}
.space-between{
	justify-content: space-between;
}
.mask{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 100;
}
</style>
